Skip to content

Add return_all_runs option to post_process#88

Open
Wegatriespython wants to merge 3 commits intomainfrom
feat/return-all-runs
Open

Add return_all_runs option to post_process#88
Wegatriespython wants to merge 3 commits intomainfrom
feat/return-all-runs

Conversation

@Wegatriespython
Copy link
Collaborator

@Wegatriespython Wegatriespython commented Feb 11, 2026

Add a return_all_runs parameter to post_process() that returns individual climate model runs (with run IDs encoded in the model name and climate model in the variable name) instead of percentile-aggregated results. This supports downstream analyses that need per-run timeseries rather than summary statistics.

Also wires the option through the CLI (--return-all-runs/--no-return-all-runs) for both clim-cli and workflow commands.

Closes #87

  • Tests added
  • Documentation added
  • Example added (in the documentation, to an existing notebook, or in a new notebook)
  • Description in CHANGELOG.md added

Note on example: Running this feature end-to-end requires climate model configurations (e.g. FaIR parameter files). The unit test with synthetic data demonstrates usage. A notebook example can be added if requested.

This returns all runs appending run_id to model column. Instead of fixed
percentiles users can specifically map config parquet id to run_id.
- Unit test with synthetic ScmRun data exercising the full post_process
  pipeline in return_all_runs mode
- NumPy-style docstring for post_process() and return_all_runs param
  docstring for run_and_post_process()
- CHANGELOG entry under ### Added for #87
Wire return_all_runs through Click options for both clim_cli and
workflow commands. Fix ruff format violations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support to return all runs from a given config

1 participant